export const state = {
    user: sessionStorage.getItem('user') ? JSON.parse(sessionStorage.getItem('user')) : {}
}
export const mutations = {
    changeinfo(state, obj) {
        state.user = obj
        sessionStorage.setItem('user', JSON.stringify(obj))
    }
}


export const getters = {
    userinfo(state) {
        return state.user
    }
}